package top.seekincs.repository;

import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import top.seekincs.entity.AlumniUserEntity;

import java.util.List;

@Repository
public interface AlumniUserRepository extends CrudRepository<AlumniUserEntity, Integer> {

    AlumniUserEntity findByUsernameAndPassword(String username, String password);

    List<AlumniUserEntity> findAllBySchoolId(Integer schoolId);

}
